package com.monitor.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 车辆BI表
 * </p>
 *
 * @author LX
 * @since 2018-09-12
 */
@TableName("erp_bidata")
public class ErpBidata extends Model<ErpBidata> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("cus_id")
    private Integer cusId;
    /**
     * 车辆牌号m
     */
    @TableField("car_plate")
    private String carPlate;
    @TableField("car_num")
    private String carNum;
    /**
     * 车辆类型
     */
    @TableField("car_type")
    private String carType;
    @TableField("tire_pressure")
    private String tirePressure;
    /**
     * 录入人ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 录入人姓名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 录入时间
     */
    @TableField("add_date")
    private String addDate;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCusId() {
        return cusId;
    }

    public void setCusId(Integer cusId) {
        this.cusId = cusId;
    }

    public String getCarPlate() {
        return carPlate;
    }

    public void setCarPlate(String carPlate) {
        this.carPlate = carPlate;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getTirePressure() {
        return tirePressure;
    }

    public void setTirePressure(String tirePressure) {
        this.tirePressure = tirePressure;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAddDate() {
        return addDate;
    }

    public void setAddDate(String addDate) {
        this.addDate = addDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ErpBidata{" +
        ", id=" + id +
        ", cusId=" + cusId +
        ", carPlate=" + carPlate +
        ", carNum=" + carNum +
        ", carType=" + carType +
        ", tirePressure=" + tirePressure +
        ", userId=" + userId +
        ", userName=" + userName +
        ", addDate=" + addDate +
        "}";
    }
}
